home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Format (UK) 79
/
PC Format 79 - Feb 1998.iso
/
Critical
/
Barclays
/
DEMO16.DIR
/
00001_Script_movie script
next >
Wrap
Text File
|
1997-12-08
|
2KB
|
78 lines
on startMovie
global pointCursor,gt
set pointCursor to [the number of member "pointer cursor", the number of member "pointer mask"]
if gt=1 then set the text of member "gtbanner" to "(Click on 'next' to continue¼
with the guided tour)"
end
on stopMovie
end
on keydown
if the type of the member of sprite 36 = #digitalVideo then
set the movieRate of sprite 36 to 0
end if
repeat with n = 1 to 30
puppetSprite n, FALSE
set the cursor of sprite n to 0
end repeat
puppetSound 0
go to "start"
end
on wait howlong
set currentTime to the timer
repeat while currentTime + howlong > the timer
nothing
end repeat
end
on waitforfade
wait 60
end
on click
puppetSound 2, "click"
updateStage
updateStage
wait 30
end
on clickFade
click
global gt
set gt=0
set the text of member "gtbanner" to ""
set the cursor of sprite the clickOn to 0
puppetSprite the clickOn, FALSE
sound fadeOut 1, 60
end
on clickFadeMovie
set the text of member "gtbanner" to ""
global gt
set gt=0
set the movieRate of sprite 36 to 0
clickFade
end
on moveCursor targetH, targetV, timeLength
set rate = 16
set increments = float(timeLength)/float(60)*rate
puppetSprite 31, TRUE
set startH to the locH of sprite 31
set startV to the locV of sprite 31
set incH to float(the locH of sprite 31 - targetH) / increments
set incV to float(the locV of sprite 31 - targetV) / increments
startTimer
repeat with n = 1 to increments
set the locH of sprite 31 to startH - (incH*n)
set the locV of sprite 31 to startV - (incV*n)
updateStage
wait timeLength/increments*n - the timer
end repeat
set the locH of sprite 31 to targetH
set the locV of sprite 31 to targetV
puppetSprite 31, FALSE
end